package com.ruoyi.ring.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ring.mapper.RingPhysicalLayoutInitializationMapper;
import com.ruoyi.ring.domain.RingPhysicalLayoutInitialization;
import com.ruoyi.ring.service.IRingPhysicalLayoutInitializationService;

/**
 * 身体状况布局初始化Service业务层处理
 * 
 * @author liuwp
 * @date 2025-10-17
 */
@Service
public class RingPhysicalLayoutInitializationServiceImpl implements IRingPhysicalLayoutInitializationService 
{
    @Autowired
    private RingPhysicalLayoutInitializationMapper ringPhysicalLayoutInitializationMapper;

    /**
     * 查询身体状况布局初始化
     * 
     * @param id 身体状况布局初始化主键
     * @return 身体状况布局初始化
     */
    @Override
    public RingPhysicalLayoutInitialization selectRingPhysicalLayoutInitializationById(Long id)
    {
        return ringPhysicalLayoutInitializationMapper.selectRingPhysicalLayoutInitializationById(id);
    }

    /**
     * 查询身体状况布局初始化列表
     * 
     * @param ringPhysicalLayoutInitialization 身体状况布局初始化
     * @return 身体状况布局初始化
     */
    @Override
    public List<RingPhysicalLayoutInitialization> selectRingPhysicalLayoutInitializationList(RingPhysicalLayoutInitialization ringPhysicalLayoutInitialization)
    {
        return ringPhysicalLayoutInitializationMapper.selectRingPhysicalLayoutInitializationList(ringPhysicalLayoutInitialization);
    }

    /**
     * 根据业务主键查询一条记录：身体状况布局初始化
     *
     * @param ringPhysicalLayoutInitialization 身体状况布局初始化
     * @return 身体状况布局初始化
     */
    @Override
    public RingPhysicalLayoutInitialization selectOneRingPhysicalLayoutInitialization(RingPhysicalLayoutInitialization ringPhysicalLayoutInitialization)
    {
        return ringPhysicalLayoutInitializationMapper.selectOneRingPhysicalLayoutInitialization(ringPhysicalLayoutInitialization);
    }

    /**
     * 新增身体状况布局初始化
     * 
     * @param ringPhysicalLayoutInitialization 身体状况布局初始化
     * @return 结果
     */
    @Override
    public int insertRingPhysicalLayoutInitialization(RingPhysicalLayoutInitialization ringPhysicalLayoutInitialization)
    {
        return ringPhysicalLayoutInitializationMapper.insertRingPhysicalLayoutInitialization(ringPhysicalLayoutInitialization);
    }

    /**
     * 修改身体状况布局初始化
     * 
     * @param ringPhysicalLayoutInitialization 身体状况布局初始化
     * @return 结果
     */
    @Override
    public int updateRingPhysicalLayoutInitialization(RingPhysicalLayoutInitialization ringPhysicalLayoutInitialization)
    {
        return ringPhysicalLayoutInitializationMapper.updateRingPhysicalLayoutInitialization(ringPhysicalLayoutInitialization);
    }

    @Override
    public int updateRingPhysicalLayoutInitializationCondition(RingPhysicalLayoutInitialization ringPhysicalLayoutInitialization, RingPhysicalLayoutInitialization ringPhysicalLayoutInitializationCondition)
    {
        return ringPhysicalLayoutInitializationMapper.updateRingPhysicalLayoutInitializationCondition(ringPhysicalLayoutInitialization, ringPhysicalLayoutInitializationCondition);
    }

    /**
     * 批量删除身体状况布局初始化
     * 
     * @param ids 需要删除的身体状况布局初始化主键
     * @return 结果
     */
    @Override
    public int deleteRingPhysicalLayoutInitializationByIds(Long[] ids)
    {
        return ringPhysicalLayoutInitializationMapper.deleteRingPhysicalLayoutInitializationByIds(ids);
    }

    /**
     * 删除身体状况布局初始化信息
     * 
     * @param id 身体状况布局初始化主键
     * @return 结果
     */
    @Override
    public int deleteRingPhysicalLayoutInitializationById(Long id)
    {
        return ringPhysicalLayoutInitializationMapper.deleteRingPhysicalLayoutInitializationById(id);
    }

    /**
     * 条件删除身体状况布局初始化
     *
     * @param ringPhysicalLayoutInitialization 身体状况布局初始化
     * @return 结果
     */
    @Override
    public int deleteRingPhysicalLayoutInitializationByCondition(RingPhysicalLayoutInitialization ringPhysicalLayoutInitialization)
    {
        return ringPhysicalLayoutInitializationMapper.deleteRingPhysicalLayoutInitializationByCondition(ringPhysicalLayoutInitialization);
    }

}
